import { createWebHashHistory, createRouter } from 'vue-router'
import  {isMobile} from '@/utils/flexible.js'
import MobileRoutes from './modules/mobile/index.js'
import DesktopRoutes from './modules/desktop/index.js'
const router = createRouter({
  history: createWebHashHistory(),
  routes: isMobile.value? MobileRoutes:DesktopRoutes
})
export default router